<template>
  <div>
    <detail :memberId="memberId"></detail>
  </div>
</template>

<style scoped>

</style>

<script>
  import Detail from '@/components/Member/Detail'

  export default {
    components: {
      Detail
    },
    data() {
      return {
        memberId: '',
        enterpriseId: ''
      }
    },
    // 过滤器
    filters: {
      statusFilter(status) {
        const statusMap = {
          1: 'success',
          2: 'danger'
        }
        return statusMap[status]
      }
    },
    // 初始化页面
    created() {
      const queryParams = this.getCurrentPage().query
      if (queryParams && queryParams.memberId) {
        this.memberId = queryParams.memberId
      }
    }
  }
</script>
